package teacher;

import basic.ClientConsole;

import com.sun.rowset.CachedRowSetImpl;

import flexibility.userData;

public class getSidASSid {
	public CachedRowSetImpl getSidASSid(ClientConsole teacherConnection,
			CachedRowSetImpl rs, userData T_Data,Integer myID,String sid,String aID) {
		T_Data.deleteAll();
		T_Data.addData(40);
		T_Data.addData(1);
		T_Data.addData(sid);
		T_Data.addData(aID);
		teacherConnection.acceptMsg(T_Data);
        rs=teacherConnection.getResults();
        
        return rs;

}
	public CachedRowSetImpl getCid(ClientConsole teacherConnection,
			CachedRowSetImpl rs, userData T_Data,Integer myID,String cid) {
		System.out.println("Course Id for assignemnt: "+cid);
		T_Data.deleteAll();
		T_Data.addData(108);
		T_Data.addData(1);
		T_Data.addData(cid);
		teacherConnection.acceptMsg(T_Data);
        rs=teacherConnection.getResults();
        
        return rs;
	}
	

}
